package com.guacun.entry;

import com.guacun.controller.StudentController;
import com.guacun.controller.TeacherController;

import java.util.Scanner;

public class InfoManagerEntry {
    static Scanner scanner = new Scanner(System.in);
    private static StudentController studentController=new StudentController();
   private static TeacherController teacherController=new TeacherController();
    public static void main(String[] args) {
        mainMenu();
    }

    //主菜单
    public static void mainMenu() {
        while (true) {
            System.out.println("---------------------欢迎使用关村信息管理系统-----------------------");
            System.out.println("-------------1.学生管理    2.老师管理   3.back---------------------");
            System.out.println("请输入您的选择:");
            int i = scanner.nextInt();
            switch (i){
                case 1:
                    studentController.studentMenu();
                    break;
                case 2:
                    teacherController.teacherMenu();
                    break;
                case 3:
                    System.out.println("退出成功");
                     System.exit(0);
                default:
                    System.out.println("请重新输入您的选择:");
            }
        }
    }

}
